package com.java2.lang;

import java.io.IOException;

public class ProgressD {
	public static void main(String[] args) throws IOException,
			InterruptedException {
		Runtime runtime = Runtime.getRuntime();
		long total = runtime.totalMemory();
		long free = runtime.freeMemory();
		System.out.println(total);
		System.out.println(free);

		Process process = null;
		process = runtime.exec("notepad");
		// process.waitFor();
		Thread.sleep(2000);
		process.destroy();

	}

}
